package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.E_CHECK_IN_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.E_COMPANY_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.E_EMP_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.E_EMP_STATUS;
import static org.jsola.hr.example.OperationEmpRecordExample.E_INPUT_USER_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.E_METHOD_PATH;
import static org.jsola.hr.example.OperationEmpRecordExample.E_QUERY_TYPE;
import static org.jsola.hr.example.OperationEmpRecordExample.E_SOURCE_TYPE;
import static org.jsola.hr.example.OperationEmpRecordExample.E_SOURCE_TYPE_INFO;
import static org.jsola.hr.example.OperationEmpRecordExample.E_USER_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.M_CHECK_IN_ID_MAX;
import static org.jsola.hr.example.OperationEmpRecordExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.OperationEmpRecordExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.OperationEmpRecordExample.M_INPUT_USER_ID_MAX;
import static org.jsola.hr.example.OperationEmpRecordExample.M_METHOD_PATH_MAX;
import static org.jsola.hr.example.OperationEmpRecordExample.M_SOURCE_TYPE_INFO_MAX;
import static org.jsola.hr.example.OperationEmpRecordExample.M_USER_ID_MAX;
import static org.jsola.hr.example.OperationEmpRecordExample.N_CHECK_IN_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.N_COMPANY_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.N_EMP_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.N_EMP_STATUS;
import static org.jsola.hr.example.OperationEmpRecordExample.N_INPUT_USER_ID;
import static org.jsola.hr.example.OperationEmpRecordExample.N_METHOD_PATH;
import static org.jsola.hr.example.OperationEmpRecordExample.N_QUERY_TYPE;
import static org.jsola.hr.example.OperationEmpRecordExample.N_SOURCE_TYPE;
import static org.jsola.hr.example.OperationEmpRecordExample.N_SOURCE_TYPE_INFO;
import static org.jsola.hr.example.OperationEmpRecordExample.N_USER_ID;

/**
 * 操作员工记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【操作员工记录表】的参数")
@Data
public class OperationEmpRecordUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 50, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_QUERY_TYPE, example = E_QUERY_TYPE)
    private Integer queryType;

    @ApiModelProperty(notes = N_INPUT_USER_ID, example = E_INPUT_USER_ID)
    @Length(max = 32, message = M_INPUT_USER_ID_MAX)
    private String inputUserId;

    @ApiModelProperty(notes = N_USER_ID, example = E_USER_ID)
    @Length(max = 32, message = M_USER_ID_MAX)
    private String userId;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_CHECK_IN_ID, example = E_CHECK_IN_ID)
    @Length(max = 32, message = M_CHECK_IN_ID_MAX)
    private String checkInId;

    @ApiModelProperty(notes = N_EMP_STATUS, example = E_EMP_STATUS)
    private Integer empStatus;

    @ApiModelProperty(notes = N_SOURCE_TYPE, example = E_SOURCE_TYPE)
    private Integer sourceType;

    @ApiModelProperty(notes = N_SOURCE_TYPE_INFO, example = E_SOURCE_TYPE_INFO)
    @Length(max = 32, message = M_SOURCE_TYPE_INFO_MAX)
    private String sourceTypeInfo;

    @ApiModelProperty(notes = N_METHOD_PATH, example = E_METHOD_PATH)
    @Length(max = 200, message = M_METHOD_PATH_MAX)
    private String methodPath;


}

